#import <Foundation/Foundation.h>
#import "Position.h"
#import "FifteenPuzzleAppDelegate.h"

@interface FifteenPuzzleModel : NSObject {
    NSMutableArray * tileCollection;
    Position * freePosition;
    NSMutableArray * freeNeighbours;
}

@property (nonatomic, retain) NSMutableArray * tileCollection;
-(void) update: (int)t rect: (CGRect)newRect;
-(void) changeNeighboursPositions: (int)direction;
-(void) changeAutoPosition: (int)p direction: (int)d;
-(void) moveTileWithIndex: (int)index;
@end
